package log

import (
	"github.com/sirupsen/logrus"
	"os"
)

var log logrus.Logger

func init() {
	var log = logrus.New()
	log.SetFormatter(&logrus.JSONFormatter{})
	log.SetOutput(os.Stdout)
	log.SetLevel(logrus.InfoLevel)

}

func Info(message ...any) {
	log.Info(message)
}

func Debug(message ...any) {
	log.Debug(message)
}

func Error(message ...any) {
	log.Error(message)
}
